package com.springBootStudy.annotation.autowiredStudy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ program: elasticSearch_springBoot_study
 * @ description:
 * @ author: Mr.Zhongsf
 * @ create: 2021-03-08 14:46
 **/
public class AutowiredTest {
    public static void main(String[] args) {
       ApplicationContext context = new ClassPathXmlApplicationContext("mapper/autowiredStudy.xml");
        People people = context.getBean("people", People.class);
        people.getCat().shout();
        people.getDog().shout();
        System.out.println(people.getName());
    }
}
